//申请用车
import {request} from "../request";

/**
 * 1、添加用户申请
 * @param vehiclePy
 * @returns {AxiosPromise}
 */
export function addVehiclePy({empId,cause,vehicleId,licensePlate,startTime,brand,endTime}) {
	return request({
		url:'/process/vehicle-py/add',
		method:'post',
		data: {
			empId, cause, vehicleId, licensePlate, startTime, brand, endTime
		}
	})
}

/**
 * 获取需要要申请的车辆列表
 * @returns {*}
 */
export function queryVehicleList(){
	return request({
		url: '/process/vehicle-py/vehicle-list',
		method: 'get'
	})
}